package com.wcgksoft.common.util;

import java.util.ArrayList;
import java.util.List;

public class Paging<T>{

	private List<? extends T> data;//具体的数据
	private Integer totalPage;//共有多少条
	private Integer curPage;//当前页数
	private Integer pageSize;//每页显示条数
	private Integer code;
	private String msg;
	
	@SuppressWarnings("unchecked")
	public void setList(Object object){
		List list=new ArrayList<Object>();
		list.add(object);
		data=new ArrayList();
		data.addAll(list);
	}
	
	public List<? extends T> getData() {
		return data;
	}

	public void setData(List<? extends T> data) {
		this.data = data;
	}

	public Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}
	public Integer getCurPage() {
		return curPage;
	}
	public void setCurPage(Integer curPage) {
		this.curPage = curPage;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
